//
//  GreenView.m
//  GitDemo
//
//  Created by 王强 on 16/1/26.
//  Copyright © 2016年 王强. All rights reserved.
//

#import "GreenView.h"

@implementation GreenView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setUpSubViews];
    }
    return self;
}

- (void)setUpSubViews
{
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(20, 20, 60, 60)];
    view.backgroundColor = [UIColor colorWithRed:0.920 green:0.323 blue:1.000 alpha:1.000];
    [self addSubview:view];
}

@end
